package com.woniuxy.myshop.mapper;

import com.woniuxy.myshop.entity.Item;
import com.woniuxy.myshop.vo.ItemVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface ItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Item record);

    Item selectByPrimaryKey(Integer id);

    List<Item> selectAll();

    int updateByPrimaryKey(Item record);

    void insertBatch(@Param("items") Set<ItemVo> items);

    Set<ItemVo> selectItemByOrder(int id);
}